#ifndef _H_LED
#define _H_LED
#include "stm32f10x.h"
#define LED_PORT GPIOA  //定义gpio端口

#define LED_PIN_0 GPIO_Pin_0//定义gpio引脚
#define LED_PIN_1 GPIO_Pin_1//定义gpio引脚
#define LED_PIN_2 GPIO_Pin_2//定义gpio引脚
#define LED_PIN_3 GPIO_Pin_3//定义gpio引脚
#define LED_PIN_4 GPIO_Pin_4//定义gpio引脚
#define LED_PIN_5 GPIO_Pin_5//定义gpio引脚
#define LED_PIN_6 GPIO_Pin_6//定义gpio引脚
#define LED_PIN_7 GPIO_Pin_7//定义gpio引脚

//位带定义
#define LED0 	PCout(13)
#define LED1 	PAout(0)  
#define LED2 	PAout(1) 
#define LED3 	PAout(2)  
#define LED4 	PAout(3)
#define LED5 	PAout(4)  
#define LED6 	PAout(5)
#define LED7 	PAout(6)  
#define LED8 	PAout(7)

void ledInit(void);
void ledWriteData(uint16_t GPIO_Pin_from,u8 num,u8 data);

#endif
